﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;


namespace KTVProject
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            //this.skinEngine1 = new Sunisoft.IrisSkin.SkinEngine((System.ComponentModel.Component)(this));
            //this.skinEngine1.SkinFile = Application.StartupPath + "//XPBlue.ssk";
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void btnOpenFile_Click_1(object sender, EventArgs e)
        {
            OpenFileDialog openFile = new OpenFileDialog();

            DialogResult result = openFile.ShowDialog();

            if (result == DialogResult.OK)
            {
                this.labAddress.Text = "文件路径:" + openFile.FileName;

                this.pictureBox1.Image = Image.FromFile(openFile.FileName);

                //string urlFile = openFile.FileName;
                int index = openFile.FileName.LastIndexOf("\\");
                string fileName = openFile.FileName.Substring(index + 1);

                this.labFileName.Text = "文件名称:" + fileName;
            }
        }
    }
}
